package com.efast.cafe.portal.remote.query;


import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import com.efast.cafe.framework.feign.constant.FeignConstant;
import com.efast.cafe.portal.bean.query.TemplateObjBean;

import java.util.Map;

@FeignClient(name = "cafe.portal-service",path="/cafe.portal-service")
public interface TemplateParseService {
	
	@RequestMapping(value = FeignConstant.Scope.FEIGN_SCOPE_PV_AUTH+"/portal/query/parseSql1",method=RequestMethod.POST)
	TemplateObjBean parseSql(@RequestParam("sql")String sql);
	@RequestMapping(value = FeignConstant.Scope.FEIGN_SCOPE_PV_AUTH+"/portal/query/parseSql3",method=RequestMethod.POST)
	TemplateObjBean parseSql(@RequestBody Map<String,Object> sqlmap);
	@RequestMapping(value = FeignConstant.Scope.FEIGN_SCOPE_PV_AUTH+"/portal/query/parseSql2",method=RequestMethod.POST)
	TemplateObjBean parseSql(@RequestParam("sql")String sql,@RequestParam("isPreview") Boolean isPreview);
}
